package com.example.test;

/**
 * TODO: 这里要写注释的!
 */
public class PrinMain {
    public static void main(String[] args) {
        PrintQueue printQueue= new PrintQueue();
        Thread[] threads= new Thread[10];
        for (int i = 0; i < 10; i++) {
            threads[i]= new Thread(new Job(printQueue),"Thread "+i);
        }
        for (int i = 0; i < 10; i++) {
            threads[i].start();
        }
    }
}
